<!--{assign var="menu_id" value="marry"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_banner.tpl"}-->
<div class="oe_inmain"> 
  <!--{include file="<!--{$oetplpath}-->block_left.tpl"}-->
  <div class="right">
    <div class="oe_umarry">
      <div class="oe_unav"> 我的征婚 </div>
      <div class="oe_utitle">
        <ul>
          <li><a href="<!--{$oefile}-->&c=marry">我发布的</a></li>
		  <li><a href="<!--{$oefile}-->&c=marrybm" class="current">我应征的<em></em></a></li>
        </ul>
        <div class="clear"></div>
      </div>


      <div class="marrybm_list">
	    
		<!--{if empty($marrybm)}-->
		<div class="oe_nodata">
          <p class="p_1"><img src="<!--{$userskin}-->images/nodata.jpg" /></p>
          <p class="p_2">没有符合条件的信息！</p>
        </div>
		<!--{else}-->
        <!--{foreach $marrybm as $volist}-->
        <dl>
          <dt>
            <h2> 
              <span><a href="<!--{$volist.homeurl}-->" target="_blank"><img src="<!--{$volist.headimg}-->" /></a></span>
              <p class="p_1"> 
                <!--{$volist.age}-->岁 <!--{$volist.height}-->CM 
                <!--{area type="text" value=$volist.dist1}--> <!--{area type="text" value=$volist.dist2}--> 
                <!--{hook mod="var" item="marry" type="text" value=$volist.marry}--> 
                <!--{hook mod="var" item="education" type="text" value=$volist.education}--> 
              </p>
              <p class="p_2">发布时间：<!--{$volist.addtime|date_format:"%Y-%m-%d"}--></p>
              <div class="clear"></div>
            </h2>
            <h3> 
              <!--{if $volist.catid > 0}--> 
              <!--{hook mod="var" item="marrycat" type="text" value=$volist.catid}-->： 
              <!--{/if}--> 
              <!--{$volist.title}--> 
            </h3>
            <p class="p_2"> 有效时间：<!--{$volist.endtime|date_format:"%Y-%m-%d"}--></p>
          </dt>
          <dd>
			<!--{if $config.app.lineserv == '1'}-->
			<!--{if $volist.isentrust == '1'}-->
			<p class="p_1"><span class="current"><i></i>已委托红娘牵线</span></p>
			<!--{else}-->
			<p class="p_1" f="pop_entrust_serv" data-linetype="2" data-relid="<!--{$volist.marryid}-->" data-reload="1"><span><i></i>委托红娘牵线</span></p>
			<!--{/if}-->
			<!--{/if}-->


            <!--{assign var="bmlist" vo_list("mod={marrybm} where={v.marryid='<!--{$volist.marryid}-->' AND (v.bmuid><!--{$login.info.userid}--> OR v.bmuid<<!--{$login.info.userid}-->)}")}--> 
            
            <p class="p_2">
			  您共有 <em><!--{count($bmlist)}--></em>
			  位竞争者。<!--{if $config.app.lineserv == '1'}-->点击右方可委托红娘牵线抢占先机哦！<!--{/if}-->
			  
			  <!--{if $volist.bmflag == '1'}-->
              <span class="span_2">
			    您的资料已被对方选中，
				<label f="view_bmcontact" data-id="<!--{$volist.marryid}-->">查看对方联系方式</label>
			  </span>
			  <!--{else}-->
			  <span class="span_1">您的资料待选中</span>
			  <!--{/if}-->
            </p>
			<!--{if !empty($bmlist)}-->
            <div class="ulist"> 
              <!--{foreach $bmlist as $val}--> 
              <span><img src="<!--{$val.headimg}-->" /></span> 
              <!--{/foreach}--> 
            </div>
            <!--{/if}--> 
          </dd>

          <!--{if $volist.bmflag == '1'}-->
          <dd class="dd_2" id="view_contact_<!--{$volist.marryid}-->" style="display:none;">
            <h3> 
              <!--{if $volist.gender == '1'}--> 
              您的报名已被对方选定，赶紧联系他吧。 
              <!--{else}--> 
              您的报名已被对方选定，赶紧联系她吧。 
              <!--{/if}--> 
            </h3>
            <ul>
              <li>
			    <span>手机：</span>
				<!--{if !empty($volist.mobile)}-->
				<!--{$volist.mobile}-->
				<!--{else}-->
				--
				<!--{/if}-->
			  </li>
              <li>
			    <span>邮箱：</span>
				<!--{if !empty($volist.email)}-->
				<!--{$volist.email}-->
				<!--{else}-->
				--
				<!--{/if}-->
			  </li>
              <li>
			    <span>QQ：</span>
				<!--{if !empty($volist.qq)}-->
				<!--{$volist.qq}-->
				<!--{else}-->
				--
				<!--{/if}-->
			  </li>
              <li>
			    <span>微信：</span>
				<!--{if !empty($volist.weixin)}-->
				<!--{$volist.weixin}-->
				<!--{else}-->
				--
				<!--{/if}-->
			  </li>
            </ul>
            <div class="clear"></div>
          </dd>
          <!--{/if}-->

        </dl>
        <div class="ge" id="mymarry_<!--{$volist.marryid}-->_ge"></div>
        <!--{/foreach}--> 
		<!--{/if}-->
        
      </div>
	  <!--//marrybm_list End -->

	  <!--{if $total > 0 && !empty($showpage)}-->
	  <div class="oe_page"> <!--{$showpage}--> </div>
	  <!--{/if}-->

    </div>
  </div>
  <div class="clear"></div>
</div>

<!--{include file="<!--{$oetplpath}-->block_footer.tpl"}-->

<script type="text/javascript">
$(function(){
	
	$(document).on("click", "[f='view_bmcontact']", function(){
		$_id = $(this).attr("data-id");
		if ($("#view_contact_"+$_id).css("display") == "none") {
			$("#view_contact_"+$_id).show(200);
		}
		else {
			$("#view_contact_"+$_id).hide(200);
		}
	});
});
</script>
</body>
</html>